package cn.imu.appdevexperiment2020.cch.retrofit.api;

import java.util.Map;

import cn.imu.appdevexperiment2020.cch.retrofit.bean.ClassesListResultBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.EditResultBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.EditSendBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.GetByUserNameResultBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.ListResultBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.LoginResultBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.LoginSendBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.RegisterResultBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.RegisterSendBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.ResetPwdResultBean;
import cn.imu.appdevexperiment2020.cch.retrofit.bean.ResetPwdSendBean;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * 描述:
 *
 * @author chenconghua
 * @version 1.0
 * @create 2022-11-03 19:31
 */
interface Api {

    @POST(GetApi.register)
    Call<RegisterResultBean> register(@QueryMap Map<String,String> map, @Body RegisterSendBean registerSendBean);

    @POST(GetApi.login)
    Call<LoginResultBean> login(@QueryMap Map<String,String> map, @Body LoginSendBean loginSendBean);
    @POST(GetApi.resetPwd)
    Call<ResetPwdResultBean> resetPwd(@QueryMap Map<String,String> map, @Body ResetPwdSendBean resetPwdSendBean);



    @POST(GetApi.edit)
    Call<EditResultBean> edit(@QueryMap Map<String,String> map, @Body EditSendBean editSendBean);

    @GET(GetApi.list)
    Call<ListResultBean> list(@QueryMap Map<String,String> map, @QueryMap Map<String,String> map1);
    @GET(GetApi.getByUserName)
    Call<GetByUserNameResultBean> getByUserName(@QueryMap Map<String,String> map, @QueryMap Map<String,String> map1);


    @GET(GetApi.classeslist)
    Call<ClassesListResultBean> classeslist(@QueryMap Map<String,String> map, @QueryMap Map<String,String> map1);
}
